|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.SwingWorker<java.lang.Void,java.lang.Void>
j3deditor.bin.hierarchy.util.HierarchyWorker
j3deditor.bin.hierarchy.util.ObjImporter
public class ObjImporter
Tool for importing objects from OBJ
file to specified scene.
Uses com.sun.j3d.loaders.objectfile.ObjectFile.
ObjectFile| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.SwingWorker |
|---|
javax.swing.SwingWorker.StateValue |
| Constructor Summary | |
|---|---|
ObjImporter(J3DeScene scene)
Creates an instance of ObjLoader
which is able to import objects to the given scene. |
|
| Method Summary | |
|---|---|
protected java.lang.Void |
doInBackground()
Performes the importation process in a background thread. |
protected void |
done()
Notifies all listeners that object(s) have been added to the scene. |
void |
loadFile(java.lang.String filePath)
Opens the given OBJ file and imports objects to the scene associated to this importer. |
| Methods inherited from class j3deditor.bin.hierarchy.util.HierarchyWorker |
|---|
addHierarchyListener, notifyListeners, removeHierarchyListener |
| Methods inherited from class javax.swing.SwingWorker |
|---|
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjImporter(J3DeScene scene)
ObjLoader
which is able to import objects to the given scene.
scene - an instance of J3DeScene
this importer can import to| Method Detail |
|---|
public void loadFile(java.lang.String filePath)
filePath - path of a OBJ file the objects will be imported fromObjectFile.load(String filePath)
protected java.lang.Void doInBackground()
throws java.lang.Exception
doInBackground in class HierarchyWorkerjava.lang.Exception - if unable to importSwingWorker.doInBackground()protected void done()
done in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||